import React from 'react';
import {BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import pageOne from './pages/page1';
import pageTwo from './pages/page2';
import { Provider } from './redux';

export default () => {
    return (
    <Provider>
        <Router>
            <Switch>
                <Route path="/page-one" component={pageOne} exact/>
                <Route path="/page-two" component={pageTwo} exact/>
            </Switch>
        </Router>
    </Provider>
    );
}